require("Common/define");
require("Common/functions");
require("View/LoginPanel");
require("View/SetPanel");
require("View/GamePanel");
require("Controller/PlayerManager");
require("Controller/EnemyFactory");
require("Controller/DestroyCollider");
require("View/BattlePanel");


GameRoot={};
local this =GameRoot;
local transform;

local playerBulletPrefab;
local enemyBulletPrefab;
function GameRoot.OnAwake()
	print("hello");

	LoginPanel.New()

	DestroyCollider.New();

	


	-- local res=LuaFramework.LuaHelper.GetResManager()
	-- resMgr:LoadPrefab("player",{"player"},this.LoadOK);
end


-- function GameRoot.Update()
-- 	if(transform)then
-- 		local dx = Input.GetAxis("Horizontal");
-- 		local dy = Input.GetAxis("Vertical");
-- 		local dir = Vector3.forward * dy + Vector3.right * dx;
-- 		transform:Translate(dir*Time.deltaTime);
-- 	end
-- end